package javaio;

import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStream;

public class OutputStreamDemo01 {

	public static void main(String[] args) throws Exception{
		File f = new File("G:"+File.separator+"AA.txt");
		OutputStream out = new FileOutputStream(f);
		String str = "Hello";
		byte b[] = str.getBytes();
		out.write(b);
		out.close();
	
	}

}
